package com.ruoyi.room.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.room.service.ITbRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 房间表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@RestController
@RequestMapping("/room/")
/*
* TODO
*   1.房间表添加房间时，需要判断房间名是否重复
*  */
public class TbRoomController {
    @Autowired
    ITbRoomService roomService;
    @RequestMapping("getRoomAll")
    public AjaxResult getRoomAll(){
        return AjaxResult.success(roomService.list());
    }

}
